home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / mdxdos23 / fatalerr.c < prev    next >
C/C++ Source or Header  |  1996-07-10  |  386b  |  20 lines

  1. #include    <multix.h>
  2.  
  3. Public    Void    MsDosCdecl    FatalErrorHandler(
  4. Int8Ptr ErrorText
  5. )
  6. BEGIN
  7.     static    TBoolean    Inside    GETS    False;
  8.     IfNullP(ErrorText)    ErrorText    GETS    "";
  9. #ifndef _WINDOWS
  10.     /* perror(ErrorText); */
  11.     printf("\n%s\nFatal Error - Program Stopped !!!\n",ErrorText);
  12. #else
  13.     Use(ErrorText);
  14. #endif
  15.     IF    Inside    EQ    True THEN    return;
  16.     Inside    GETS    True;
  17.     exit(5);
  18.  
  19. END
  20.